.class public Lcom/waiqin365/lightapp/cockpit/a/c;
.super Landroid/widget/PopupWindow;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field a:Landroid/app/Activity;

.field private b:I

.field private c:I

.field private d:I

.field private e:Landroid/graphics/Bitmap;

.field private f:Landroid/graphics/Bitmap;

.field private g:Landroid/widget/LinearLayout;

.field private h:Ljava/lang/String;

.field private i:Ljava/lang/String;

.field private j:Ljava/lang/String;

.field private k:Ljava/lang/String;

.field private l:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Landroid/widget/PopupWindow;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->e:Landroid/graphics/Bitmap;

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->f:Landroid/graphics/Bitmap;

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->l:Landroid/os/Handler;

    iput-object p1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/cockpit/a/c;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method private a(Landroid/view/ViewGroup;)V
    .locals 6

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v1

    if-ge v0, v1, :cond_0

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->l:Landroid/os/Handler;

    new-instance v3, Lcom/waiqin365/lightapp/cockpit/a/g;

    invoke-direct {v3, p0, v1}, Lcom/waiqin365/lightapp/cockpit/a/g;-><init>(Lcom/waiqin365/lightapp/cockpit/a/c;Landroid/view/View;)V

    mul-int/lit8 v1, v0, 0x50

    int-to-long v4, v1

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/cockpit/a/c;Landroid/view/ViewGroup;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/cockpit/a/c;->b(Landroid/view/ViewGroup;)V

    return-void
.end method

.method private b()Landroid/graphics/Bitmap;
    .locals 8

    const/high16 v7, 0x3f800000    # 1.0f

    const/4 v6, 0x0

    const/4 v5, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->f:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->f:Landroid/graphics/Bitmap;

    :goto_0
    return-object v0

    :cond_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/view/View;->setDrawingCacheEnabled(Z)V

    invoke-virtual {v0, v5}, Landroid/view/View;->buildDrawingCache(Z)V

    invoke-virtual {v0}, Landroid/view/View;->getDrawingCache()Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->e:Landroid/graphics/Bitmap;

    const/high16 v0, 0x41000000    # 8.0f

    const/high16 v1, 0x41200000    # 10.0f

    iget-object v2, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v3

    int-to-float v2, v2

    div-float/2addr v2, v0

    float-to-int v2, v2

    int-to-float v3, v3

    div-float/2addr v3, v0

    float-to-int v3, v3

    sget-object v4, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v2, v3, v4}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v2

    iput-object v2, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->f:Landroid/graphics/Bitmap;

    new-instance v2, Landroid/graphics/Canvas;

    iget-object v3, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->f:Landroid/graphics/Bitmap;

    invoke-direct {v2, v3}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    div-float v3, v7, v0

    div-float v0, v7, v0

    invoke-virtual {v2, v3, v0}, Landroid/graphics/Canvas;->scale(FF)V

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    const/4 v3, 0x2

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setFlags(I)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v2, v3, v6, v6, v0}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->f:Landroid/graphics/Bitmap;

    float-to-int v1, v1

    invoke-static {v0, v1, v5}, Lcom/waiqin365/lightapp/cockpit/a/a;->a(Landroid/graphics/Bitmap;IZ)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->f:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->f:Landroid/graphics/Bitmap;

    goto :goto_0
.end method

.method private b(Landroid/view/ViewGroup;)V
    .locals 6

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v1

    if-ge v0, v1, :cond_1

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->l:Landroid/os/Handler;

    new-instance v3, Lcom/waiqin365/lightapp/cockpit/a/h;

    invoke-direct {v3, p0, v1}, Lcom/waiqin365/lightapp/cockpit/a/h;-><init>(Lcom/waiqin365/lightapp/cockpit/a/c;Landroid/view/View;)V

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v4

    sub-int/2addr v4, v0

    add-int/lit8 v4, v4, -0x1

    mul-int/lit8 v4, v4, 0x50

    int-to-long v4, v4

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    invoke-virtual {v1}, Landroid/view/View;->getId()I

    move-result v1

    const v2, 0x7f0c00ba

    if-ne v1, v2, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->l:Landroid/os/Handler;

    new-instance v2, Lcom/waiqin365/lightapp/cockpit/a/j;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/cockpit/a/j;-><init>(Lcom/waiqin365/lightapp/cockpit/a/c;)V

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v3

    sub-int/2addr v3, v0

    mul-int/lit8 v3, v3, 0x50

    add-int/lit8 v3, v3, 0x50

    int-to-long v4, v3

    invoke-virtual {v1, v2, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    iget v0, v0, Landroid/graphics/Rect;->top:I

    iput v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->d:I

    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v1

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    iput v1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->b:I

    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    iput v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->c:I

    iget v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->b:I

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->setWidth(I)V

    iget v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->c:I

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->setHeight(I)V

    return-void
.end method

.method public a(Landroid/view/View;I)V
    .locals 4

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f03001d

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->setContentView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    const v1, 0x7f0c00bc

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    const v2, 0x7f0c00bd

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    new-instance v2, Lcom/waiqin365/lightapp/cockpit/a/d;

    invoke-direct {v2, p0, v1}, Lcom/waiqin365/lightapp/cockpit/a/d;-><init>(Lcom/waiqin365/lightapp/cockpit/a/c;Landroid/widget/ImageView;)V

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    const v1, 0x7f0c00ba

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    const v2, 0x7f0c00bb

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    new-instance v2, Lcom/waiqin365/lightapp/cockpit/a/e;

    invoke-direct {v2, p0, v1}, Lcom/waiqin365/lightapp/cockpit/a/e;-><init>(Lcom/waiqin365/lightapp/cockpit/a/c;Landroid/widget/ImageView;)V

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/waiqin365/lightapp/cockpit/a/f;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/cockpit/a/f;-><init>(Lcom/waiqin365/lightapp/cockpit/a/c;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->a(Landroid/view/ViewGroup;)V

    new-instance v0, Landroid/graphics/drawable/BitmapDrawable;

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/cockpit/a/c;->b()Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    invoke-virtual {p0, v3}, Lcom/waiqin365/lightapp/cockpit/a/c;->setOutsideTouchable(Z)V

    invoke-virtual {p0, v3}, Lcom/waiqin365/lightapp/cockpit/a/c;->setFocusable(Z)V

    const/16 v0, 0x50

    const/4 v1, 0x0

    iget v2, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->d:I

    invoke-virtual {p0, p1, v0, v1, v2}, Lcom/waiqin365/lightapp/cockpit/a/c;->showAtLocation(Landroid/view/View;III)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->h:Ljava/lang/String;

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->i:Ljava/lang/String;

    return-void
.end method

.method public c(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->j:Ljava/lang/String;

    return-void
.end method

.method public d(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->k:Ljava/lang/String;

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 7

    const/4 v1, 0x1

    const/4 v6, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    instance-of v0, v0, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    if-eqz v0, :cond_2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/cockpit/a/c;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->b(Landroid/view/ViewGroup;)V

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    check-cast v0, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->a(I)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    instance-of v0, v0, Lorg/apache/cordova/WqCordovaActivity;

    if-eqz v0, :cond_5

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/cockpit/a/c;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->b(Landroid/view/ViewGroup;)V

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->h:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    check-cast v0, Lorg/apache/cordova/WqCordovaActivity;

    invoke-virtual {v0, v1}, Lorg/apache/cordova/WqCordovaActivity;->share2weixin(I)V

    goto :goto_0

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    check-cast v0, Lorg/apache/cordova/WqCordovaActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->h:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->j:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->i:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->k:Ljava/lang/String;

    invoke-virtual/range {v0 .. v5}, Lorg/apache/cordova/WqCordovaActivity;->share2weixinUrl(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    instance-of v0, v0, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/cockpit/a/c;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->b(Landroid/view/ViewGroup;)V

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    check-cast v0, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->a(I)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    instance-of v0, v0, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    if-eqz v0, :cond_8

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/cockpit/a/c;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->b(Landroid/view/ViewGroup;)V

    :cond_7
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    check-cast v0, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->a(I)V

    goto :goto_0

    :cond_8
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    instance-of v0, v0, Lorg/apache/cordova/WqCordovaActivity;

    if-eqz v0, :cond_b

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/cockpit/a/c;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->b(Landroid/view/ViewGroup;)V

    :cond_9
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->h:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    check-cast v0, Lorg/apache/cordova/WqCordovaActivity;

    invoke-virtual {v0, v6}, Lorg/apache/cordova/WqCordovaActivity;->share2weixin(I)V

    goto/16 :goto_0

    :cond_a
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    check-cast v0, Lorg/apache/cordova/WqCordovaActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->h:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->j:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->i:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->k:Ljava/lang/String;

    move v1, v6

    invoke-virtual/range {v0 .. v5}, Lorg/apache/cordova/WqCordovaActivity;->share2weixinUrl(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_b
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    instance-of v0, v0, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/cockpit/a/c;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_c

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->g:Landroid/widget/LinearLayout;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/cockpit/a/c;->b(Landroid/view/ViewGroup;)V

    :cond_c
    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/a/c;->a:Landroid/app/Activity;

    check-cast v0, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->a(I)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c00ba
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
